package com.wn.class30.entity;

import java.io.Serializable;

/**
 * product_img_head
 * @author 
 */
public class ProductImgHead implements Serializable {
    /**
     * 轮播图ID
     */
    private Integer productImgHeadId;

    /**
     * 商品编号
     */
    private Integer productId;

    /**
     * 轮播图地址
     */
    private String productImgHeadUrl;

    private Integer productImgHeadSort;

    private static final long serialVersionUID = 1L;

    public Integer getProductImgHeadId() {
        return productImgHeadId;
    }

    public void setProductImgHeadId(Integer productImgHeadId) {
        this.productImgHeadId = productImgHeadId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductImgHeadUrl() {
        return productImgHeadUrl;
    }

    public void setProductImgHeadUrl(String productImgHeadUrl) {
        this.productImgHeadUrl = productImgHeadUrl;
    }

    public Integer getProductImgHeadSort() {
        return productImgHeadSort;
    }

    public void setProductImgHeadSort(Integer productImgHeadSort) {
        this.productImgHeadSort = productImgHeadSort;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductImgHead other = (ProductImgHead) that;
        return (this.getProductImgHeadId() == null ? other.getProductImgHeadId() == null : this.getProductImgHeadId().equals(other.getProductImgHeadId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getProductImgHeadUrl() == null ? other.getProductImgHeadUrl() == null : this.getProductImgHeadUrl().equals(other.getProductImgHeadUrl()))
            && (this.getProductImgHeadSort() == null ? other.getProductImgHeadSort() == null : this.getProductImgHeadSort().equals(other.getProductImgHeadSort()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProductImgHeadId() == null) ? 0 : getProductImgHeadId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getProductImgHeadUrl() == null) ? 0 : getProductImgHeadUrl().hashCode());
        result = prime * result + ((getProductImgHeadSort() == null) ? 0 : getProductImgHeadSort().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productImgHeadId=").append(productImgHeadId);
        sb.append(", productId=").append(productId);
        sb.append(", productImgHeadUrl=").append(productImgHeadUrl);
        sb.append(", productImgHeadSort=").append(productImgHeadSort);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}